/*
 * @Description: 
 * @Author: 黎志恒
 * @LastEditors: 黄勇
 * @Date: 2019-03-19 17:10:50
 * @LastEditTime: 2020-03-04 22:35:02
 */

import Vue from 'vue';
import Vuex from 'vuex';
import typeEnumPlugin from './typeEnumPlugin';
import createPersistedState from 'vuex-persistedstate';
import commonData from './modules/components/commonData';
import user from './modules/components/user';
Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    // test: a,
    // test1: b,
    user,
    commonData
  }
  // plugins: [typeEnumPlugin, createPersistedState({
  //     //todo:看情况是否需要全部存储,,还是只存储一小部分...
  //     storage: window.localStorage,
  //     reducer(store) {
  //         return {
  //             //"user":store.user
  //         }
  //     }
  // })]
});

export default store;